package cn.wh.mybatis.builder;

import cn.wh.mybatis.session.Configuration;
import cn.wh.mybatis.type.TypeAliasRegistry;

/**
 * @Description 构建器的基类 建造者模式
 * @Version 1.0.0
 * @Date 2022/12/26 15:09
 * @Created wh
 */
public abstract class BaseBuilder {

    protected final Configuration configuration;

    protected final TypeAliasRegistry typeAliasRegistry;

    public BaseBuilder(Configuration configuration) {
        this.configuration = configuration;
        this.typeAliasRegistry = this.configuration.getTypeAliasRegistry();
    }

    public Configuration getConfiguration(){
        return configuration;
    }

}
